<div class="modal-header" id="scope">
	<h3 class="modal-title" ng-if="param.type == 'insert'">新增</h3>
	<h3 class="modal-title" ng-if="param.type == 'update'">修改</h3>
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
			<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>类型：</label>
					<div class="col-sm-7">
						<ui-select ng-model="dplist.selected" theme="bootstrap">
						<ui-select-match placeholder="类型">{{$select.selected.name}}</ui-select-match>
						<ui-select-choices
							repeat="ads in dplist | propsFilter:{name: $select.search}">
						<span ng-bind-html="ads.name | highlight: $select.search" ></span>
						</ui-select-choices> </ui-select>
					</div>
			</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>名称：</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" placeholder="名称" ng-model="param.data.name" required/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>计算公式：</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" placeholder="计算公式" ng-model="param.data.expression"  required/>
					</div>
				</div>
				<div class="form-group">
				    <label class="col-sm-3 control-label">计算公式格式规范：</label>
				    <p class="col-sm-7" style="margin-top: 5px">表达式中金额单位是元，符号必须使用半角英文。</p>
				     <label class="col-sm-3 control-label"></label>
				    <p class="col-sm-7" style="margin-top: 5px">{{hint}}</p>

				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>规则说明：</label>
					<div class="col-sm-7">
						<input type="text" class="form-control" placeholder="规则说明" ng-model="param.data.description"  required/>
					</div>
				</div>
			</div>
			<footer class="panel-footer text-right bg-light lter">
				<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
				<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
			</footer>
		</div>
	</form>
</div>